#include<stdio.h>
struct Birth
{
    int y,m,d;
};
struct Student//声明定义一个学生类型
{
    int num;
    char name[32];// 数组中存储整个字符串
    struct Birth b;//
};

int main()
{
    //struct Student s = {1001, "pxl", 1999,1,1};
    //struct Student s = {1001, "pxl",{1999,1,1}};
    //struct Student s = {1001, "pxl",{ .m=2}};
    //struct Student s[5] = {{1001,"pxl", 1999,12,12},{1002,"xxx",{.m=3}},{.num=1003}};

    struct Student s[5] = 
                {
                    [1] = {1001,"pxl", 1999,12,12},
                    [2] = {1002,"xxx",{.m=3}}
                };
    for(int i = 0; i < 5; i++)
        printf("%d-%s:%d/%d/%d\n", s[i].num, s[i].name, s[i].b.y, s[i].b.m, s[i].b.d);
}
